package com.test.event.spring;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class BusinessEventListener implements ApplicationListener<BusinessEvent> {

    @Override
    public void onApplicationEvent(BusinessEvent event) {
        log.debug("do business event: {}", event.getSource());
    }
}
